package com.uubx.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;
import java.util.Date;
@ApiModel(description = "Protocols数据")
public class Protocols {
    /**
     *关于我们Id
     */
    @Id
    @ApiModelProperty(value = "协议Id",hidden =true)
    private Long id;
    /**
     *协议名称
     */
    @ApiModelProperty(value = "协议名称")
    private String name;
    /**
     *编辑时间
     */
    @DateTimeFormat(pattern="yyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty(value = "编辑时间")
    private Date lasttime;
    /**
     *协议类容
     */
    @ApiModelProperty(value = "协议类容")
    private String content;
    /**
     *上架时间
     */
    @DateTimeFormat(pattern="yyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty(value = "上架时间")
    private Date puttime;
    /**
     *下架时间
     */
    @DateTimeFormat(pattern="yyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @ApiModelProperty(value = "下架时间")
    private Date removetime;
    /**
     *协议状态
     */
    @ApiModelProperty(value = "协议状态")
    private String status;

    public Protocols() {
    }

    public Protocols(Long id, String name, Date lasttime, String content, Date puttime, Date removetime, String status) {
        this.id = id;
        this.name = name;
        this.lasttime = lasttime;
        this.content = content;
        this.puttime = puttime;
        this.removetime = removetime;
        this.status = status;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getLasttime() {
        return lasttime;
    }

    public void setLasttime(Date lasttime) {
        this.lasttime = lasttime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getPuttime() {
        return puttime;
    }

    public void setPuttime(Date puttime) {
        this.puttime = puttime;
    }

    public Date getRemovetime() {
        return removetime;
    }

    public void setRemovetime(Date removetime) {
        this.removetime = removetime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Protocols{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", lasttime=" + lasttime +
                ", content='" + content + '\'' +
                ", puttime=" + puttime +
                ", removetime=" + removetime +
                ", status='" + status + '\'' +
                '}';
    }
}
